{{indexmenu_n>22}}

====== Portable OpenCPN V2 ======

===== How to create a portable OpenCPN program on a USB memory stick, including the split-screen configuration =====

The Help files in the OpenCPN program are out-of-date with the latest release 4.6.1. I will describe the method I have found to create a folder containing the necessary files and folders that can be copied to a USB memory stick (flash drive) and used directly with a Windows based computer.

  -

Create a folder on the Desktop (or any convenient place) titled “**Portable OpenCPN**”. The necessary files and sub-folders will be placed in this folder. It’s the one that, when done, can be copied to a memory stick for portable use.

{{opencpn:manual:advanced_features:portable01.jpg?nolink&|portable01.jpg}}

  -

On the C:\ drive locate the **OpenCPN**  folder under **Program Files (x86)**

{{opencpn:manual:advanced_features:portable02.jpg?nolink&|portable02.jpg}}

  -

**Open**  this folder (right-click and select Open or double left-click). **Select**  all files and folders (**CTL-A**) then right-click and select **Copy**  to place these files and folders on the clipboard.

{{opencpn:manual:advanced_features:portable03.jpg?nolink&|portable03.jpg}}

  -

Navigate back to the **Desktop**, open the **Portable OpenCPN**  folder, right-click on the empty screen and select **Paste**.

{{opencpn:manual:advanced_features:portable04.jpg?nolink&|portable04.jpg}}

  -

On the C:\ drive, locate the **opencpn folder**  under the **Program Data**  folder. (**NOTE**: The **Program Data**  folder is a hidden file and must be selected to be shown (It’s a selection on **Control Panel/Folder Options**)). Open this folder, select all the files except **Crash Reports**  and **Copy**  to the clipboard.

{{opencpn:manual:advanced_features:portable05.jpg?nolink&|portable05.jpg}}

  -

As before, return to the **Portable OpenCPN**  folder on the **Desktop**  and **Paste**  these files and folders into that folder.

  -

To enable the program to run from the memory stick it is necessary to use a ‘**batch**’ file for launching. The batch file is created by any text editor but saved with a **‘.bat’**  suffix, not a **.txt**  suffix..

I’ve used **Notepad**  to add the words as shown.

{{opencpn:manual:advanced_features:portable06.jpg?nolink&|portable06.jpg}}

Select **File/Save As…**

{{opencpn:manual:advanced_features:portable07.jpg?nolink&|portable07.jpg}}

On the **Save As**  screen select from the elevator **Áll Files (*.*) **Otherwiseit wants to save it as a **.txt**  file.

{{opencpn:manual:advanced_features:portable08.jpg?nolink&|portable08.jpg}}

On the next screen I have entered the name **ÁLWAYS DBL CLICK HERE TO START.bat **Note the suffix **.bat**. Now click on **Save. **The name for this file is up to you. If the name starts with the letter ‘’**A**’’ then it will be visible at the top of the files and under the folders when the folder is open.

{{opencpn:manual:advanced_features:portable09.jpg?nolink&|portable09.jpg}}

… and save it with a click in the **Portable OpenCPN**  folder on the **Desktop**.

{{opencpn:manual:advanced_features:portable10.jpg?nolink&|portable10.jpg}}

  -

So far we have loaded the basic **OpenCPN**  program on the memory stick but it will need charts and other items to be useful. Here I have created a ‘**CHARTS**’ folder under the **Portable OpenCPN**  folder. From my host computer I have copied the charts as shown: the **cm93**  vector charts from 2007 (the best for the SEAsia waters) and my collection of **.kap Overlay Charts**  for **Indonesia**  and the **Philippines**  that were created with the **GE2KAP**  program.

{{opencpn:manual:advanced_features:portable11.jpg?nolink&|portable11.jpg}}

  -

Other items I find useful I have copied from my host computer.

The **Layers**  and **User icons**  folders are located in the **Program Data/opencpn**  folder. These are copied and pasted into the **Portable OpenCPN**  folder. Placing a **Layers**  folder here allows the contents to be displayed or hidden with one click in the **Route & Mark Manager**  within the** OpenCPN**  program. The **UserIcons**  folder contains additional icons from those in the default installation when describing marks you create in the program. These are available from the **OpenCPN Downloads**  page on the internet.

{{opencpn:manual:advanced_features:portable12.jpg?nolink&|portable12.jpg}}

I have** plugins**  on my host computer that are in addition to the default ones that come with the **OpenCPN**  program. To have these in the portable version I have copied them from my host computer into the **plugins**  folder in the **Portable CPN**  folder.

{{opencpn:manual:advanced_features:portable13.jpg?nolink&|portable13.jpg}}

Other information on my host computer that I want copied over are **Anchorages, Routes and Miscellaneous**  Waypoints. These are shown here.

{{opencpn:manual:advanced_features:portable14.jpg?nolink&|portable14.jpg}}

  -

Let’s run the program! Double-click on the batch file.

{{opencpn:manual:advanced_features:portable15.jpg?nolink&|portable15.jpg}}

{{opencpn:manual:advanced_features:portable16.jpg?nolink&|portable16.jpg}}

The batch file launches (it will stay running in the background) and the first welcome screen of the **OpenCPN program**. Click on **OK**  and …..

{{opencpn:manual:advanced_features:portable17.jpg?nolink&|portable17.jpg}}

__**GPS CONNECTIONS**__

  -

**For ‘Stand alone’ mode. (The program is run from the memory stick but uses a GPS signal available on the host computer)**  This mode requires that a **GPS**  signal be available, usually on some **COM**  port. Assume such is the case where a **USB GPS**  has been connected to the host computer and the signal is available on the **COM1**  serial port.

Go to **Options/Connections**  and click on **Ádd Connection**’ Click on the ‘’**elevator**’’ to display the host computer **COM**  port then click on ‘’**Apply**’.’

{{opencpn:manual:advanced_features:portable18.jpg?nolink&|portable18.jpg}}

{{opencpn:manual:advanced_features:portable19.jpg?nolink&|portable19.jpg}}

This screen appears .. click on ‘’OK’’ The display shows the GPS input is active by the green bars in the UR and the boat icon is now red color.

{{opencpn:manual:advanced_features:portable20.jpg?nolink&|portable20.jpg}}

{{opencpn:manual:advanced_features:portable21.jpg?nolink&|portable21.jpg}}

  -

**For ‘Split-screen’mode. (The program is run from the host computer and also from the portable configuration)**  This configuration gives **two**  displays of the **OpenCPN**  program on the screen. This allows a **close-up**  view and a **zoomed-out**  view simultaneously. To do this the **OpenCPN**  program is run from the host computer and the second display for the split-screen is run from a portable configuration. (The portable configuration can be on a memory stick or resident on the host computer). The problem to overcome is that running the **OpenCPN**  program from the host computer, using a COM port, denies that COM port from any other use, i.e. it cannot also be used for the portable configuration. The solution is to output the GPS signal from the host computer on a local UDP network and receive the signal on the portable configuration from the UDP network instead of a COM port.

The settings we will use are: //**Host computer - UDP IP 127.0.0.1, Port 10110, output Portable configuration – UDP IP 0.0.0.0, Port 10110, input**  //

On **the host computer**, go to **Options/Connections**. Click on ‘**’Add Connection**””. Click on ‘’**Network**’’, check the‘’UDP’’ button, insert numbers as shown, check the

“”**Output **..”” box and click on “”**Apply**””.

{{opencpn:manual:advanced_features:portable22.jpg?nolink&|portable22.jpg}}

{{opencpn:manual:advanced_features:portable23.jpg?nolink&|portable23.jpg}}

You ‘may’ see this screen appear:

{{opencpn:manual:advanced_features:portable24.jpg?nolink&|portable24.jpg}}

Check and uncheck the boxes as shown and click on ‘’Allow access’’

{{opencpn:manual:advanced_features:portable25.jpg?nolink&|portable25.jpg}}

Launch the **portable OpenCPN**  program. Repeat as above to establish these settings: Click on ‘’OK’’.

{{opencpn:manual:advanced_features:portable26.jpg?nolink&|portable26.jpg}}

Now display both programs and move the edges to show a split-screen display. Note that the GPS data is present on both screens.

{{opencpn:manual:advanced_features:portable27.jpg?nolink&|portable27.jpg}}

{{opencpn:manual:advanced_features:portable28.jpg?nolink&|portable28.jpg}}

{{opencpn:manual:advanced_features:portable29.jpg?nolink&|portable29.jpg}}

**HINT**: //**When moving the edges of the two screens down, do not go into the ‘taskbar ’area, though it may be hidden. Avoiding this area will keep the screen configurations in the same split-screen mode when next re-launching the programs.**  //

**VOILA!**

See, that wasn’t so hard was it? If you have problems or need help I am just an email away. Email: [[yachties@yahoo.com|yachties(that symbol)yahoo.com]]

Terry

18 April 2017

